home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / tcsh / dist / ed.decls.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-21  |  9.0 KB  |  248 lines

  1. /* $Header: /home/hyperion/mu/christos/src/sys/tcsh-6.01/RCS/ed.decls.h,v 3.11 1991/11/26 04:28:26 christos Exp $ */
  2. /*
  3.  * ed.decls.h: Editor external definitions
  4.  */
  5. /*-
  6.  * Copyright (c) 1980, 1991 The Regents of the University of California.
  7.  * All rights reserved.
  8.  *
  9.  * Redistribution and use in source and binary forms, with or without
  10.  * modification, are permitted provided that the following conditions
  11.  * are met:
  12.  * 1. Redistributions of source code must retain the above copyright
  13.  *    notice, this list of conditions and the following disclaimer.
  14.  * 2. Redistributions in binary form must reproduce the above copyright
  15.  *    notice, this list of conditions and the following disclaimer in the
  16.  *    documentation and/or other materials provided with the distribution.
  17.  * 3. All advertising materials mentioning features or use of this software
  18.  *    must display the following acknowledgement:
  19.  *    This product includes software developed by the University of
  20.  *    California, Berkeley and its contributors.
  21.  * 4. Neither the name of the University nor the names of its contributors
  22.  *    may be used to endorse or promote products derived from this software
  23.  *    without specific prior written permission.
  24.  *
  25.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  26.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  27.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  28.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  29.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  30.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  31.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  32.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  33.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  34.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  35.  * SUCH DAMAGE.
  36.  */
  37. #ifndef _h_ed_decls
  38. #define _h_ed_decls
  39.  
  40. /*
  41.  * ed.chared.c
  42.  */
  43. extern    int    InsertStr        __P((Char *));
  44. extern    void    DeleteBack        __P((int));
  45.  
  46. /*
  47.  * ed.init.c
  48.  */
  49. extern    void    check_window_size    __P((int));
  50. #ifdef SIG_WINDOW
  51. extern    sigret_t window_change        __P((int));
  52. #endif
  53. extern    int    ed_Setup        __P((int));
  54. extern    void    ed_Init            __P((void));
  55. extern    int    Cookedmode        __P((void));
  56. extern    int    Rawmode            __P((void));
  57. extern    void    ed_set_tty_eight_bit    __P((void));
  58.  
  59. extern    void    QuoteModeOn        __P((void));
  60. extern    void    QuoteModeOff        __P((void));
  61. extern    void    ResetInLine        __P((void));
  62. extern    int    Load_input_line        __P((void));
  63.  
  64. /*
  65.  * ed.term.c:
  66.  */
  67. extern    void    dosetty            __P((Char **, struct command *));
  68. extern    int    tty_getty         __P((int, ttydata_t *));
  69. extern    int    tty_setty         __P((int, ttydata_t *));
  70. extern    void    tty_getchar         __P((ttydata_t *, unsigned char *));
  71. extern    void    tty_setchar         __P((ttydata_t *, unsigned char *));
  72. extern    speed_t    tty_getspeed         __P((ttydata_t *));
  73. extern    int    tty_gettabs         __P((ttydata_t *));
  74. extern    int    tty_geteightbit        __P((ttydata_t *));
  75. extern    int    tty_cooked_mode        __P((ttydata_t *));
  76. #ifdef _IBMR2
  77. extern    void    tty_setdisc        __P((int, int));
  78. #endif /* _IBMR2 */
  79.  
  80. /*
  81.  * ed.screen.c
  82.  */
  83. extern    void    SetAttributes        __P((int));
  84. extern    void    so_write        __P((Char *, int));
  85. extern    void    ClearScreen        __P((void));
  86. extern    void    MoveToLine        __P((int));
  87. extern    void    MoveToChar        __P((int));
  88. extern    void    ClearEOL        __P((int));
  89. extern    void    Insert_write        __P((Char *, int));
  90. extern    void    DeleteChars        __P((int));
  91. extern    void    TellTC            __P((char *));
  92. extern    void    SetTC            __P((char *, char *));
  93. extern    void    EchoTC            __P((Char **));
  94. extern    void    BindArrowKeys        __P((void));
  95. extern    void    Beep            __P((void));
  96. extern    int    CanWeTab        __P((void));
  97. extern    void    ChangeSize        __P((int, int));
  98. extern    int    GetSize            __P((int *, int *));
  99. extern    void    ClearToBottom        __P((void));
  100. extern    void    GetTermCaps        __P((void));
  101.  
  102. /*
  103.  * ed.defns.c
  104.  */
  105. extern    void    ed_InitNLSMaps        __P((void));
  106. #ifdef DEBUG_EDIT
  107. extern    void    CheckMaps        __P((void));
  108. #endif
  109. extern    void    ed_InitMaps        __P((void));
  110. extern    void    ed_InitEmacsMaps    __P((void));
  111. extern    void    ed_InitVIMaps        __P((void));
  112.  
  113. extern  CCRETVAL    e_unassigned        __P((int));
  114. extern    CCRETVAL    e_insert        __P((int));
  115. extern    CCRETVAL    e_newline        __P((int));
  116. extern    CCRETVAL    e_delprev        __P((int));
  117. extern    CCRETVAL    e_delnext        __P((int));
  118. extern    CCRETVAL    e_list_delnext        __P((int));    /* for ^D */
  119. extern    CCRETVAL    e_toend            __P((int));
  120. extern    CCRETVAL    e_tobeg            __P((int));
  121. extern    CCRETVAL    e_charback        __P((int));
  122. extern    CCRETVAL    e_charfwd        __P((int));
  123. extern    CCRETVAL    e_quote            __P((int));
  124. extern    CCRETVAL    e_startover        __P((int));
  125. extern    CCRETVAL    e_redisp        __P((int));
  126. extern    CCRETVAL    e_wordback        __P((int));
  127. extern    CCRETVAL    e_wordfwd        __P((int));
  128. extern    CCRETVAL    v_wordbegnext        __P((int));
  129. extern    CCRETVAL    e_uppercase        __P((int));
  130. extern    CCRETVAL    e_lowercase        __P((int));
  131. extern    CCRETVAL    e_capitolcase        __P((int));
  132. extern    CCRETVAL    e_cleardisp        __P((int));
  133. extern    CCRETVAL    e_complete        __P((int));
  134. extern    CCRETVAL    e_correct        __P((int));
  135. extern    CCRETVAL    e_correctl        __P((int));
  136. extern    CCRETVAL    e_up_hist        __P((int));
  137. extern    CCRETVAL    e_down_hist        __P((int));
  138. extern    CCRETVAL    e_up_search_hist    __P((int));
  139. extern    CCRETVAL    e_down_search_hist    __P((int));
  140. extern    CCRETVAL    e_helpme        __P((int));
  141. extern    CCRETVAL    e_list_choices        __P((int));
  142. extern    CCRETVAL    e_delwordprev        __P((int));
  143. extern    CCRETVAL    e_delwordnext        __P((int));
  144. extern    CCRETVAL    e_digit            __P((int));
  145. extern    CCRETVAL    e_argdigit        __P((int));
  146. extern    CCRETVAL    v_zero            __P((int));
  147. extern    CCRETVAL    e_killend        __P((int));
  148. extern    CCRETVAL    e_killbeg        __P((int));
  149. extern    CCRETVAL    e_metanext        __P((int));
  150. #ifdef notdef
  151. extern    CCRETVAL    e_extendnext        __P((int));
  152. #endif
  153. extern    CCRETVAL    e_send_eof        __P((int));
  154. extern    CCRETVAL    e_charswitch        __P((int));
  155. extern    CCRETVAL    e_gcharswitch        __P((int));
  156. extern    CCRETVAL    e_which            __P((int));
  157. extern    CCRETVAL    e_yank_kill        __P((int));
  158. extern    CCRETVAL    e_tty_dsusp        __P((int));
  159. extern    CCRETVAL    e_tty_flusho        __P((int));
  160. extern    CCRETVAL    e_tty_quit        __P((int));
  161. extern    CCRETVAL    e_tty_tsusp        __P((int));
  162. extern    CCRETVAL    e_tty_stopo        __P((int));
  163. extern    CCRETVAL    e_tty_starto        __P((int));
  164. extern    CCRETVAL    e_argfour        __P((int));
  165. extern    CCRETVAL    e_set_mark        __P((int));
  166. extern    CCRETVAL    e_exchange_mark        __P((int));
  167. extern    CCRETVAL    e_last_item        __P((int));
  168. extern    CCRETVAL    v_cmd_mode        __P((int));
  169. extern    CCRETVAL    v_insert        __P((int));
  170. extern    CCRETVAL    v_replmode        __P((int));
  171. extern    CCRETVAL    v_replone        __P((int));
  172. extern    CCRETVAL    v_substline        __P((int));
  173. extern    CCRETVAL    v_substchar        __P((int));
  174. extern    CCRETVAL    v_add            __P((int));
  175. extern    CCRETVAL    v_addend        __P((int));
  176. extern    CCRETVAL    v_insbeg        __P((int));
  177. extern    CCRETVAL    v_chgtoend        __P((int));
  178. extern    CCRETVAL    e_killregion        __P((int));
  179. extern    CCRETVAL    e_killall        __P((int));
  180. extern    CCRETVAL    e_copyregion        __P((int));
  181. extern    CCRETVAL    e_tty_int        __P((int));
  182. extern    CCRETVAL    e_run_fg_editor        __P((int));
  183. extern    CCRETVAL    e_list_eof        __P((int));
  184. extern    CCRETVAL    e_expand_history    __P((int));
  185. extern    CCRETVAL    e_magic_space        __P((int));
  186. extern    CCRETVAL    e_list_glob        __P((int));
  187. extern    CCRETVAL    e_expand_glob        __P((int));
  188. extern    CCRETVAL    e_insovr        __P((int));
  189. extern    CCRETVAL    v_cm_complete        __P((int));
  190. extern    CCRETVAL    e_copyprev        __P((int));
  191. extern    CCRETVAL    v_change_case        __P((int));
  192. extern    CCRETVAL    e_expand        __P((int));
  193. extern    CCRETVAL    e_expand_vars        __P((int));
  194. extern    CCRETVAL    e_toggle_hist        __P((int));
  195. extern  CCRETVAL        e_load_average        __P((int));
  196. extern  CCRETVAL        v_delprev        __P((int));
  197. extern  CCRETVAL        v_delmeta        __P((int));
  198. extern  CCRETVAL        v_wordfwd        __P((int));
  199. extern  CCRETVAL        v_wordback        __P((int));
  200. extern  CCRETVAL        v_endword        __P((int));
  201. extern  CCRETVAL        v_eword            __P((int));
  202. extern  CCRETVAL        v_undo            __P((int));
  203. extern  CCRETVAL        v_ush_meta        __P((int));
  204. extern  CCRETVAL        v_dsh_meta        __P((int));
  205. extern  CCRETVAL        v_rsrch_fwd        __P((int));
  206. extern  CCRETVAL        v_rsrch_back        __P((int));
  207. extern  CCRETVAL        v_char_fwd        __P((int));
  208. extern  CCRETVAL        v_char_back        __P((int));
  209. extern  CCRETVAL        v_chgmeta        __P((int));
  210. extern    CCRETVAL    e_inc_fwd        __P((int));
  211. extern    CCRETVAL    e_inc_back        __P((int));
  212. extern    CCRETVAL    v_rchar_fwd        __P((int));
  213. extern    CCRETVAL    v_rchar_back        __P((int));
  214. extern  CCRETVAL        v_charto_fwd        __P((int));
  215. extern  CCRETVAL        v_charto_back        __P((int));
  216. extern  CCRETVAL        e_normalize_path    __P((int));
  217.  
  218. /*
  219.  * ed.inputl.c
  220.  */
  221. extern    int    Inputl            __P((void));
  222. extern    int    GetNextChar        __P((Char *));
  223. extern    void    PushMacro        __P((Char *));
  224.  
  225. /*
  226.  * ed.refresh.c
  227.  */
  228. extern    void    ClearLines        __P((void));
  229. extern    void    ClearDisp        __P((void));
  230. extern    void    Refresh            __P((void));
  231. extern    void    RefCursor        __P((void));
  232. extern    void    RefPlusOne        __P((void));
  233. extern    void    PastBottom        __P((void));
  234.  
  235. /*
  236.  * ed.xmap.c
  237.  */
  238. extern  XmapVal *XmapStr        __P((Char *));
  239. extern  XmapVal *XmapCmd        __P((int));
  240. extern    void     AddXkey        __P((Char *, XmapVal *, int));
  241. extern    void     ClearXkey        __P((KEYCMD *, Char *));
  242. extern    int     GetXkey        __P((Char *, XmapVal *));
  243. extern    void     ResetXmap        __P((int));
  244. extern    int     DeleteXkey        __P((Char *));
  245. extern    void     PrintXkey        __P((Char *));
  246.  
  247. #endif /* _h_ed_decls */
  248.